package cn.admin.config.common.protocol;

import cn.admin.config.common.Revision;

public class UserDataResultElement extends DataClientResultElement {

    public final Revision revision;

    public UserDataResultElement(PublisherDataElement data) {
        super(data.getDataId(),data.getClientId());
        this.revision = data.getRevision();
    }

    public Revision getRevision() {
        return this.revision;
    }

    public String getDataId() {
        return this.dataId;
    }

    @Override
    public ProtocolElementUid uid() {
        return ProtocolElementUid.ELEMENT_USER_DATA_RESULT;
    }
}
